@base-color: #414859;
@error-color: #ff0040;
@focus-color: #005FA6;
.login-box{
  box-sizing: border-box;
  text-align: center;
  .login-title{
    position: relative;
    font-size: 22px;
    letter-spacing: 4px;
    padding: 0 20px;
    margin: 0;
    margin-top: 20px;
    font-weight: normal;
  }
  .login-subtitle{
    font-size: 14px;
    font-weight: normal;
    font-family: Arial, Helvetica, sans-serif;
  }
  &.login-box-1{
    width: 403px;
    display: inline-block;
    .login-title{
      margin-bottom: 40px;
      background: url(./img/title-bg.png) no-repeat center center;
      background-size: 80%;
      color: @focus-color;
      font-size: 26px;
    }
    .login__line{
      width: 80%;
      margin: auto;
      height: 1px;
      background: linear-gradient(to right, rgba(0,0,0,0), #0067b5, rgba(0,0,0,0));
    }
    .login-input-icon{
      &.password-icon{
        background: url(./img/password-icon.png) center center no-repeat;
      }
      &.user-icon{
        background: url(./img/user-icon.png) center center no-repeat;
      }
    }
    .login-main{
      box-shadow: inset 0 0 20px #0067B5;
    }
  }
  &.login-box-2{
    width: 403px;
    display: inline-block;
    background: #001B34;
    .login-title{
      &>span{
        height: 30px;
        position: absolute;
        padding: 4px 10px;
        left: 50%;
        transform: translateX(-50%);
      }
    }
    .login-input{
      background: #1A3249;
      text-indent: 42px;
    }
    .login-input-icon{
      border-right: 1px solid #31475C;
      &.password-icon{
        background: url(./img/password-icon-1.png) center center no-repeat;
      }
      &.user-icon{
        background: url(./img/user-icon-1.png) center center no-repeat;
      }
      &.vcode-icon{
        background: url(./img/vcode-icon.png) center center no-repeat;
      }
    }
    .login-vcode{
      position: absolute;
      right: 0;
      width: 100px;
      top: 50%;
      transform: translateY(-50%);
    }
    .login-vcode__refresh-btn{
      right: 100px;
      border: none;
      background: url(./img/refresh-icon.png) center center no-repeat;
      cursor: pointer;
      &.rotate{
        animation: rotate infinite 1s linear;
        // animation-fill-mode: backwards;
      }
    }
  }
  &.login-box-3{
    width: 403px;
    display: inline-block;
    // background: #000F1B;
    .login-box-bg__top{
      width: 100%;
      height: 25px;
      background: url(./img/login3.png) center center no-repeat;
    }
    .login-box-bg__bottom{
      width: 100%;
      height: 25px;
      background: url(./img/login3.png) center center no-repeat;
      transform: rotate(180deg);
    }
    .login-main, .login-title{
      background: rgba(0,73,134,0.2);
    }
    .login-title{
      text-align: left;
      padding-top: 20px;
      padding-left: 32px;
      margin-top: 0;
    }
    .login-input{
      background: rgba(255,255,255,0.15);
    }
    .login-desc{
      opacity: 0.6;
    }
    .login-vcode{
      position: absolute;
      right: 0;
      width: 100px;
      top: 50%;
      transform: translateY(-50%)
    }
  }
  &.login-box-4{
    width: 403px;
    display: inline-block;
    background: rgba(#003567, 0.4);
    .login-title{
      background: rgba(#0054a3, 0.3);
      margin-top: 0;
      padding-top: 20px;
      padding-bottom: 20px;
    }
    .login-compony-name{
      margin: 0;
    }
    .login-input{
      border-left: none;
      border-right: none;
      border-top: none;
    }
    .login-input-icon{
      left:-5px;
      &.password-icon{
        background: url(./img/password-icon-1.png) center center no-repeat;
        background-size: 50%;
      }
      &.user-icon{
        background: url(./img/user-icon-1.png) center center no-repeat;
        background-size: 50%;
      }
      &.vcode-icon{
        background: url(./img/vcode-icon.png) center center no-repeat;
        background-size: 50%;
      }
    }
    .login-vcode{
      position: absolute;
      right: 0;
      width: 100px;
      top: 50%;
      transform: translateY(-50%)
    }

  }
  .login-input-item{
    display: flex;
    margin-top: 15px;
    position: relative;
    &.column{
      flex-direction: column;
      text-align: left;
      .login-input{
        flex: auto;
        text-indent: 8px;
      }
    }
  }
  .login-input-icon{
    position: absolute;
    width: 36px;
    height: 36px;
  }
  .login-desc{
    margin-bottom: 10px;
  }
  .login-input{
    height: 32px;
    flex: 1;
    background: transparent;
    border: none;
    border: 1px solid @base-color;
    outline: none;
    color: #fff;
    transition:all 0.4s;
    text-indent: 36px;
    font-family: Arial, Helvetica, sans-serif;
    &.vcode{
      text-indent: 5px;
    }
  }
  .login-vcode{
    width: 200px;
    height: 30px;
  }
  .login-input:focus{
    border-color: @focus-color;
  }
  .login-compony-name{
    color: #0067B5;
    font-size: 22px;
    letter-spacing: 4px;
    padding: 0 20px;
    font-weight: normal;
  }
  .login-main{
    // display: flex;
    border-radius: 3px;
    padding: 32px;
  }
  .login-btn{
    margin-top: 20px;
  }
  .login-error-tip{
    // height: 40px;
    margin-top: 15px;
    text-align: left;
    color: @error-color;
  }
}




@keyframes rotate{
  from{
    transform: rotate(0);
  }
  to{
    transform: rotate(360deg);
  }
}
